package com.laguille.games.tetris.model.Tetromino;

public class TetrominoBlock {

	private Coordinates coordinates;
	
	public TetrominoBlock(Coordinates coordinates)
	{
		this.coordinates = coordinates;
	}
	
	public void removeBlock()
	{
		this.coordinates = null;
	}

	public Coordinates getCoordinates() {
		return coordinates;
	}
	
	public void setCoordinates(Coordinates newCoordinates)
	{
		this.coordinates = newCoordinates;
	}
	
	@Override
	public String toString() {
		return "X = " + coordinates.getX() + " / Y = " + coordinates.getY();
	}
}
